<template>
    <el-button :type="color" @click="sendMessage">{{title}}</el-button>
</template>

<script>
/*eslint-disable*/
  export default {
    name: "index",
    props: {
      color: {
        type: String,
        default: ""
      },title: {
        type: String,
        default: ""
      }
    },
    methods: {
      sendMessage() {
        this.$emit('onMessagePro','add'),
        this.$emit('onMessageSha','share' ),
        this.$emit('share'),
        this.$emit('edit'),
        this.$emit('checkout'),
        this.$emit('refuse'),
        this.$emit('deletes'),
        this.$emit('addCate'),
        this.$emit('addEnterprise'),
        this.$emit('freeze'),
        this.$emit('pass')
      }
    },
  }
</script>

<style scoped>

</style>
